package neuronet.common;

import neuronet.client.NeuroNetClient;

import org.apache.log4j.Logger;

public class NeuroNetControllerCThread extends Thread {

    // log4j-Logger
    private static Logger logger = Logger.getLogger(NeuroNetControllerSThread.class);

    // server ip and port
    private String serverURL;
    private int serverPort;

    // cleintid
    private String clientid;

    public NeuroNetControllerCThread(String serverURL, int serverPort, String clientid)
    {
	this.serverPort = serverPort;
	this.serverURL = serverURL;
	this.clientid = clientid;
    }

    /**
     * The working method of the class Thread
     */
    public void run()
    {
	logger.info("Thread starting client " + clientid);

	new NeuroNetClient(serverURL, serverPort, clientid);
    }
}
